jQuery(function($){ 
    //$('#formulario').validate();
	id=$(this).attr("id");
	ids="";
	$("#b_edit").hide();
	$("#label_error").hide();

	$('#fnac_persona').datepicker({dateFormat: 'dd-mm-yy', appendText:''});

	
	$("#b_save").click(function(){
		if($("#pass_sesion").val()!=$("#rpass_sesion").val()){
			$("#label_error").show();
			return false;
			}
	});
	
	$("#b_save2").click(function(){
	if(!ValidarForm($("#formulario"))){
				$("#msg_error").text("por favor corrija los campos de color rojo");
				$("#msg_error").css({color:"#EFEFEF"});
				return false;
				}			
	});
	
	$('#b_back').click(
		function(){
			window.location.href="../objetos/TransaccionEmpleado.php";
		}
	);	
});